package com.zhiyou.app.shop.website.dao;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.zhiyou.app.shop.manager.dao.IBaseDAO;
import com.zhiyou.app.shop.website.dao.pojo.User;
import com.zhiyou.app.shop.website.dao.pojo.UserAccount;

public interface IUserAccountDao extends IBaseDAO<UserAccount, String> {
	
	UserAccount findByAccount(String userAccount);

	List find(User user, String curType, String operType, String quantity,int startNum, int pageSize);
	
	int findCnt(User user, String curType, String operType,
			String quantity);
	
	public void splitStock(float per);
	
	public List listSaleOrBuy(String hql,Map<String,Object> param,int pageno,int pagesize);
	
	public List<UserAccount> findByStock();
	
	BigDecimal getTotalAccount(String account);
	
}
